package org.atlantis.netty.telnet;

import java.net.InetSocketAddress;
import java.util.concurrent.Executors;

import org.jboss.netty.bootstrap.ServerBootstrap;
import org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory;

public class TelnetServer {

	public static void main(String[] args) {
		System.out.println("Server starting ...");
		ServerBootstrap bootstrap = new ServerBootstrap(new NioServerSocketChannelFactory(
				Executors.newCachedThreadPool(), Executors.newCachedThreadPool()));
		bootstrap.setPipelineFactory(new TelnetServerPipelineFactory());
		bootstrap.bind(new InetSocketAddress(8081));
		System.out.println("Server started!");
	}
}
